var Koa = require('koa');
const router = require('./routes')
var bodyParser = require('koa-bodyparser')

var app = new Koa();

app.use(bodyParser());

app
  .use(router.routes())
  .use(router.allowedMethods());

app.listen(3002)